package com.yida.wy.vote.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author lqq
 * @date 2023-03-13
 */
@ApiModel("投票项目选项请求")
public class WyVoteOptionVo implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty("选项序列")
	private String optionId;

	@ApiModelProperty("选项名称")
	@NotBlank(message = "选项名称不能为空")
	private String optionName;

	@ApiModelProperty("选项排序")
	@NotNull(message = "选项排序不能为空")
	private Integer optionSort;

	@ApiModelProperty("选项是否选中")
	@NotBlank(message = "请求参数有误[selectFlag]为空")
	private String selectFlag;

	@ApiModelProperty("是否赞同选项")
	@NotBlank(message = "请求参数有误[agreeFlag]为空")
	private String agreeFlag;

	public String getOptionId() {
		return optionId;
	}

	public void setOptionId(String optionId) {
		this.optionId = optionId;
	}

	public String getOptionName() {
		return optionName;
	}

	public void setOptionName(String optionName) {
		this.optionName = optionName;
	}

	public Integer getOptionSort() {
		return optionSort;
	}

	public void setOptionSort(Integer optionSort) {
		this.optionSort = optionSort;
	}

	public String getSelectFlag() {
		return selectFlag;
	}

	public void setSelectFlag(String selectFlag) {
		this.selectFlag = selectFlag;
	}

	public String getAgreeFlag() {
		return agreeFlag;
	}

	public void setAgreeFlag(String agreeFlag) {
		this.agreeFlag = agreeFlag;
	}

	@Override
	public String toString() {
		final StringBuffer sb = new StringBuffer("VoteOptionRequest{");
		sb.append("optionId=").append(optionId);
		sb.append(", optionName='").append(optionName).append('\'');
		sb.append(", optionSort=").append(optionSort);
		sb.append(", selectFlag='").append(selectFlag).append('\'');
		sb.append(", agreeFlag='").append(agreeFlag).append('\'');
		sb.append('}');
		return sb.toString();
	}
}
